<template>
  <div class="box">
    <el-container>
      <el-header>
        <el-card shadow="hover" style="margin: 0.5% auto; height: 80%; text-align: center;background-color: #20a0ff">
          广州粤电廉江风电场光伏发电项目进展
        </el-card>
      </el-header>
      <el-main>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import { getMaterials } from '@/api/project'

export default {
  data() {
    return {
      materials: [],
      materialsLoading: true,
      materialTypeMap: {
        1: '框架协议',
        2: '备案证',
        3: '各部门支持性意见'
      }
    }
  },
  created() {
    this.fetchData()
  },
  methods: {
    fetchData() {
      this.materialsLoading = true
      getMaterials().then(response => {
        this.materials = response.data.items
        this.materialsLoading = false
      })
    }
  }
}
</script>

<style scoped>
.box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.low-button {
  margin: 2.5% auto;
}
.el-header {
  /*background-color: darkgreen;*/
  /*color: #333;*/
  text-align: center;
  height: 20%;
}
.el-main {
  /*background-color: #E9EEF3;*/
  /*color: #333;*/
  text-align: center;
  height: 80%;
}
.el-container {
  height: 100%;
}
.el-row {
  height: 100%;
  /*margin-bottom: 20px;*/
}
.el-col {
  height: 100%;
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>
